//
// Memory.cpp for  in /home/lund/Projets/abstract-vm/vmtmp
// 
// Made by florian dewulf
// Login   <dewulf_f@epitech.net>
// 
// Started on  Mon Feb 18 11:02:55 2013 florian dewulf
// Last update Mon Feb 18 16:29:37 2013 florian dewulf
//

#include	"Memory.hpp"

Memory::Memory() : _nb(0)
{
}

Memory::Memory(const Memory &other) : _nb(other.getSize), _stock(other.getStack())
{
}

Memory::~Memory()
{
}

Memory		Memory::operator=(const Memory &other)
{
  this->_nb = other.getSize();
  this->_stock = other.getStack();
  return (*this);
}

unsigned int	Memory::getSize() const
{
  return (this->_nb);
}

std::stack	Memory::getStack() const
{
  return (this->_stock);
}

void		Memory::setSize(const unsigned int &size)
{
  this->_nb = size;
}

void		Memory::setStack(const std::stack &newstock)
{
  this->_stock = newstock;
}
